$wave = Time2Wav ( <Time>, [Prefix], [Language], [Accent], [Delay] )
Time to Wave stores
the time in audio format.
Parameters
<Time>
Time as character string. (HH:MM format)
[Prefix]
Wave file name prefix. This parameter is optional. The default value is "SRE".
[Language]
Language to be used. Default parameter is "ENG_US".
[Accent]
The type of accent - FALSE to cease or TRUE to continue. Default value is FALSE.
[Delay]
Pause in milliseconds between 2 consecutive wave files. Default value is 0.
Return Value
Converted time
in human voice.
Remarks
- You can use
customized wave files with the artist’s name as filename prefix. To do customized
recording, you have to follow some standard rules.
- Xtend IVR supports 3 different flavors of English
language. Hence the language parameters will change accordingly. To support
- Indian English, give "ENG_IN"
- American English, give "ENG_US" or "ENG" or "ENGLISH"
- British English, give "ENG_UK"
Example
1) $wave = Time2Wav ("12:45")
Play $wave
$wave now contains "SRE_12.wav SRE_Hours.wav SRE_40.wav SRE_5.wav SREminutes.wav"
2) $x = "1:1"
$wave = Time2Wav ($x)
Play $wave
$wave now contains SRE_1.wav SRE_Hour.wav SRE_1.wav SRE_minute.wav
3) $x = "01:01"
$wave = Time2Wav ($x,"SRE","ENG",TRUE)
Play $wave
$wave now contains SRE_1.wav SRE_Hour.wav SRE_1.wav SRE_minute.wav